package com.unknownman.block.config;

import com.unknownman.block.rabbitmq.reciever.TestTopicReceiver;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 */
@Configuration
@ConditionalOnProperty(prefix = "system.rabbitmq.receive", name = "enabled", havingValue = "true")
public class RabbitMqReceiveConfig {

    @Bean
    TestTopicReceiver testTopicReceiver() {
        return new TestTopicReceiver();
    }

}
